/*
 * KKCallback.h
 *
 *  Created on: 2013-9-15
 *      Author: wanghua
 */

#ifndef KKCALLBACK_H_
#define KKCALLBACK_H_

#include "kaka_common.h"
USING_NS_CC;

using namespace std;

class KKCallback: public CCObject {
private:
CC_PROPERTY(CCObject*,target,Target)
	;CC_SYNTHESIZE(SEL_CallFuncO,callback,Callback)
	;CC_PROPERTY(CCObject*,args,Args)
	;
public:
	KKCallback(CCObject* target, SEL_CallFuncO callback, CCObject* args);

	virtual ~KKCallback();

	virtual void call(CCObject* source = NULL);

};

#endif /* KKCALLBACK_H_ */
